package com.homedo.odin.solution.contract.mng;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created by liyi on 2018/5/17.
 */
@ApiModel(description = "大牌原厂分页请求")
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class BrandEntranceListReq extends BaseRequest {


    @ApiModelProperty(value = "排序方式 desc,asc", required = false)
    private String sort="desc";

    @ApiModelProperty(value = "排序字段（方案数量：solution_count，排序值:sort）", required = false)
    private String sortName="sort";

    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码不能为空")
    @Min(value = 0, message = "当前页码非法")
    private int pageNum;

    @ApiModelProperty(value = "页大小", required = true)
    @NotNull(message = "页大小不能为空")
    @Min(value = 0, message = "页大小非法")
    private int pageSize;
}
